using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DIntersections
{
    /// <summary>
    /// <para>Stack Profile</para>
    /// <para>Creates a table and optional graph denoting the  profile of line features over one or more multipatch, raster, TIN, or terrain surfaces.</para>
    /// <para>创建一个表和可选图表，用于表示一个或多个多面体、栅格、TIN 或地形表面上的线要素剖面。</para>
    /// </summary>    
    [DisplayName("Stack Profile")]
    public class StackProfile : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public StackProfile()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_line_features">
        /// <para>Input Line Features</para>
        /// <para>The line features that will be profiled over the surface inputs.</para>
        /// <para>将在曲面输入上进行轮廓分析的线要素。</para>
        /// </param>
        /// <param name="_profile_targets">
        /// <para>Profile Targets</para>
        /// <para>The data being profiled, which can be comprised from any combination of multipatch features, raster, and triangulated surface models.</para>
        /// <para>要剖面的数据，可以由多面体要素、栅格和三角化表面模型的任意组合组成。</para>
        /// </param>
        /// <param name="_out_table">
        /// <para>Output Table</para>
        /// <para>The output table that will store the height interpolated for each profile target that intersects the input line.</para>
        /// <para>输出表，用于存储与输入线相交的每个截面梁目标的插值高度。</para>
        /// </param>
        public StackProfile(object _in_line_features, List<object> _profile_targets, object _out_table)
        {
            this._in_line_features = _in_line_features;
            this._profile_targets = _profile_targets;
            this._out_table = _out_table;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Stack Profile";

        public override string CallName => "3d.StackProfile";

        public override List<string> AcceptEnvironments => ["extent", "workspace"];

        public override object[] ParameterInfo => [_in_line_features, _profile_targets, _out_table, _out_graph];

        /// <summary>
        /// <para>Input Line Features</para>
        /// <para>The line features that will be profiled over the surface inputs.</para>
        /// <para>将在曲面输入上进行轮廓分析的线要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Line Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_line_features { get; set; }


        /// <summary>
        /// <para>Profile Targets</para>
        /// <para>The data being profiled, which can be comprised from any combination of multipatch features, raster, and triangulated surface models.</para>
        /// <para>要剖面的数据，可以由多面体要素、栅格和三角化表面模型的任意组合组成。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Profile Targets")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _profile_targets { get; set; }


        /// <summary>
        /// <para>Output Table</para>
        /// <para>The output table that will store the height interpolated for each profile target that intersects the input line.</para>
        /// <para>输出表，用于存储与输入线相交的每个截面梁目标的插值高度。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_table { get; set; }


        /// <summary>
        /// <para>Output Graph Name</para>
        /// <para>The output graph is not supported in Pro.</para>
        /// <para>Pro 不支持输出图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Graph Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_graph { get; set; } = null;


        public StackProfile SetEnv(object extent = null, object workspace = null)
        {
            base.SetEnv(extent: extent, workspace: workspace);
            return this;
        }

    }

}